package com.haoran.dwz.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.haoran.dwz.domain.entities.Menu;

public interface MenuRepository extends JpaRepository<Menu, String> {

	List<Menu> findByParentIsNullOrderByOrderNumberAsc();

	List<Menu> findByParentOrderByOrderNumberAsc(Menu parent);
}
